package com.zjj.config;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration // 告诉spring这是配置类
@ComponentScan(value = "com.zjj",excludeFilters = @ComponentScan.Filter(
        type = FilterType.ANNOTATION,classes = Controller.class
)) //排除过滤 排除@Controller
@PropertySource({"classpath:database.properties","classpath:log4j.properties"}) // 读取资源文件
@Import({JdbcConfig.class, MybatisConfig.class, SpringMvcConfig.class})
@EnableTransactionManagement // 开启事务
@EnableAspectJAutoProxy // 开启Aop
public class SpringConfig {

}
